<template>
  <el-container id="app">
    <el-header>
      <Nav></Nav>
    </el-header>

    <el-main>
      <keep-alive exclude="Playlist"   include="Home,Found,Libaray,SongListDetail,AlbumDetail,Singerinfo,Daymusic,Searchhome">
        <router-view :key="$route.fullPath"></router-view>
      </keep-alive>
    </el-main>
    <el-footer>
      <Tab></Tab>
    </el-footer>
  </el-container>
</template>

<script>
import Nav from "@/view/nav/Nav";
import Tab from "@/view/footer/Tab";
export default {
  name: "App",
  components: {
    Nav,
    Tab,
  },
  methods: {},
};
</script>
<style lang="less">
@import url("./assets/font/iconfont.css");
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  outline: none;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.el-container {
  margin: 0;
  padding: 0;

  .active {
    color: #335eea;
  }
  i {
    display: inline-block;
    font-weight: 600;
    padding: 5px;
    border-radius: 5px;
    transition: 0.5s;
  }
  i:hover {
    background-color: #F2F2F4;
  }
  i:active {
    transform: scale(1.1);
  }
  .el-header {
    margin: 0;
    padding: 0 3rem;
  }
  .el-main {
    height: calc(100vh - 120px);
    margin: 0;
    padding: 0 3rem;
    overflow-y: scroll;
    scrollbar-color: #cfcfcf #fff;
    scrollbar-width: thin;
  }
  .el-main::-webkit-scrollbar {
    // height: 100px;
    background-color: #fff;
    width: 5px;
  }
  .el-main::-webkit-scrollbar-thumb {
    height: 20px;
    background-color: #cfcfcf;
    border-radius: 10px;
  }
  .el-main::-webkit-scrollbar-button {
    background-color: #fff;
    height: 0;
  }
  .el-footer {
    margin: 0;
    padding: 0;
  }
}
</style>



